Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 684 Bytes

Using Assertions As A Substitute For All Class-Based Exceptions.rst

File metadata and controls

17 lines (11 loc) · 684 Bytes

Using Assertions As A Substitute For All Class-Based Exceptions

Definition:

  • Though the line between when to use assertions instead of class-based exceptions can be blurry at times, I think a general rule of thumb here would be to use class-based exceptions in any situation where there is a chance of recovery.

References:

Quality attributes